package cybercode.carsaleserver.dto;


public enum ResultCode {
    SUCCESS(200, "操作成功"),
    FAILURE(400, "业务异常"),
    NOT_FOUND(404, "未找到记录"),
    PARAM_VALID_ERROR(403, "参数异常"),
    UN_AUTHORIZED(401, "请求未授权"),
    NOT_PROPER_USER(401, "当前用户没有修改该报告的权限"),
    AUTH_FAIL(401, "授权失败，请检查输入");

    final int code;
    final String message;

    ResultCode(final int code, final String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
